#! /bin/sh
# shell for running unif2 --- uniformly sampled Cshot model
set -v


nx=180 dx=20 fx=0.0  labelx="Distance (km)"
nz=500 dz=5 fz=.0  labelz="Depth (km)"
ninf=3 npmax=201 
xsmoothing=10 zsmoothing=10

# echo the ../model.dir/model file; take first 2 columns of data
cat ../model.dir/model | awk '{ print $1 "		" $2 }' > model.unif2
unif2 < model.unif2 ninf=$ninf   \
	nz=$nz dz=$dz nx=$nx dx=$dx  \
	v00=2000,3000,4000,3000 > junk1.bin
smooth2 < junk1.bin n1=$nz n2=$nx r2=$xsmoothing r1=$zsmoothing > junkv

exit
